home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 227_01 / allglob.h < prev    next >
Text File  |  1988-02-07  |  2KB  |  49 lines

  1. /*
  2.  * a l l g l o b a l . h
  3.  * ---------------------
  4.  * This header file may be used if the program decides to use only
  5.  * the world coordinates for addressing. The function call which
  6.  * must be done to the conversion system is done implicitly by the macros
  7.  * generated by this header file.
  8.  *
  9.  * Because the actual conversion task may be done by macros too, no
  10.  * side-effekts on parameters please!
  11.  *
  12.  * Note that the coordinate table for polyline must be converted manual!
  13.  *
  14.  * Realease history
  15.  * ----------------
  16.  * Jun20. 1987     First version created.
  17.  *
  18.  * Written by        Rainer Gerhards
  19.  *                   Petronellastr. 6
  20.  *                   D-5112 Baesweiler
  21.  *                   West Germany
  22.  *                   Phone (49) 2401 - 1601
  23.  */
  24. #define box(x1, y1, x2, y2, color)\
  25.         box(convxco(x1), convyco(y1), convxco(x2), convyco(y2), color)
  26.  
  27. #define circle(x, y, r, c, a)\
  28.         circle(convxco(x), convyco(y), r, c, a)
  29.  
  30. #define ellipsis(x, y, rx, ry, as, ae, c)\
  31.         ellipsis(convxco(x), convyco(y), rx, ry, as, ae, c)
  32.  
  33. #define fillbox(x1, y1, x2, y2, c)\
  34.         fillbox(convxco(x1), convyco(y1), convxco(x2), convyco(y2), c)
  35.  
  36. #define getpixel(x, y)\
  37.         getpixel(convxco(x), convyco(y))
  38.  
  39. #define line(x1,y1,x2,y2,c) line(convxco(x1),convyco(y1),convxco(x2),convyco(y2),c)
  40.  
  41. #define paint(x, y, pc, bc)\
  42.         paint(convxco(x), convyco(y), pc, bc)
  43.  
  44. #define putmsg(x, y, fc, bc, m, f, s)\
  45.         putmsg(convxco(x), convyco(y), fc, bc, m, f, s)
  46.  
  47. #define setpixel(x, y, c)\
  48.         setpixel(convxco(x), convyco(y), c)
  49.